Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix custom image for annotation #1256

Merged
merged 3 commits into from
Mar 23, 2018
Merged

Fix custom image for annotation #1256

merged 3 commits into from
Mar 23, 2018

Conversation

bsudekum
Copy link
Contributor

Fixes: mapbox/mapbox-navigation-ios-examples#16 (comment)

Unsure how this regressed.

/cc @mapbox/navigation-ios @maxhawkins

Copy link
Contributor

@1ec5 1ec5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This regression was introduced in 166d64e as part of #1063. Since that change made it into v0.15.0, please add a blurb to the changelog about these methods being fixed.

- returns: Optionally, a `MGLAnnotationImage` that defines the image used for the annotation.
*/
@objc(navigationMapView:imageForAnnotation:)
optional func navigationMapView(_ mapView: MGLMapView, imageFor annotation: MGLAnnotation) -> MGLAnnotationImage?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, this implements part of #685 but takes us further away from being able to allow the developer to just use any MGLMapViewDelegate method, as suggested in #685 (comment).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I agree, however lets make the breaking change for all methods in a single pr.

@bsudekum bsudekum merged commit 9ba5f68 into master Mar 23, 2018
@bsudekum bsudekum deleted the fix-destination branch March 23, 2018 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants